package com.cinc.ebc.quote.product.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cinc.ebc.mm.model.MmPurchaseRequisitionDetailModel;
import com.cinc.ebc.mm.vo.MmPurchaseRequisitionDetailPage;
import com.cinc.ebc.quote.product.model.QuoteProductModel;
import com.cinc.ebc.quote.product.vo.QuoteProductRequestPage;
import org.apache.ibatis.annotations.Param;
import com.cinc.ebc.quote.product.entity.QuoteProduct;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 报价产品
 * @Author: jeecg-boot
 * @Date:   2023-03-22
 * @Version: V1.0
 */
public interface QuoteProductMapper extends BaseMapper<QuoteProduct> {

    List<QuoteProductModel> selectPageList(IPage<QuoteProductModel> page, @Param("productRequest") QuoteProductRequestPage productRequest, @Param("permissionSql") String permissionSql);

    void updateCostSumPriceByProject(@Param("projectId") String projectId);

    void updateGrossProfitByProject(@Param("projectId") String projectId);
}
